<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(val,i) in list" :key="val.id">
                <span>{{val.name}}</span>
            </li>
        </ul>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                list: [{
                        "id": "1",
                        "name": "三国演义",
                        "author": "罗贯中",
                        "category": "文学",
                        "desc": "一个杀伐纷争的年代"
                    },
                    {
                        "id": "2",
                        "name": "水浒传",
                        "author": "施耐庵",
                        "category": "文学",
                        "desc": "108条好汉的故事"
                    },
                    {
                        "id": "3",
                        "name": "西游记",
                        "author": "吴承恩",
                        "category": "文学",
                        "desc": "佛教与道教的斗争"
                    },
                    {
                        "id": "4",
                        "name": "红楼梦",
                        "author": "曹雪芹",
                        "category": "文学",
                        "desc": "一个封建王朝的缩影"
                    },
                    {
                        "name": "天龙八部",
                        "author": "金庸",
                        "category": "文学",
                        "desc": "武侠小说",
                        "id": 5
                    }
                ]
            },
            methods: {}
        });
    </script>
</body>

</html>